
import 'dart:convert';

List<SubCategoryForTextType> subCategoryForTextTypeFromJson(String str) =>
    List<SubCategoryForTextType>.from(
        json.decode(str).map((x) => SubCategoryForTextType.fromJson(x)));

String subCategoryForTextTypeToJson(List<SubCategoryForTextType> data) =>
    json.encode(List<dynamic>.from(data.map((x) => x.toJson())));

class SubCategoryForTextType {
  SubCategoryForTextType({
    this.filterName,
    this.subFilter,
  });

  String? filterName;
  List<String>? subFilter;

  factory SubCategoryForTextType.fromJson(Map<String, dynamic> json) =>
      SubCategoryForTextType(
        filterName: json["filterName"],
        subFilter: json["subFilter"]!=null ? List<String>.from(json["subFilter"].map((x) => x)) : null,
      );

  Map<String, dynamic> toJson() => {
        "filterName": filterName,
        "subFilter": subFilter!=null ? List<dynamic>.from(subFilter!.map((x) => x)):null,
      };
}
